//
//  SetItemModel.swift
//  MyTest
//
//  Created by guanzhongwang on 2021/4/10.
//

import Foundation
import UIKit
struct SetItemModel {
    var closure:(()->Void)?
    var type:SetItemType = .Noraml
    var title:String = ""
    var subTitle:String = ""
    var tip:String = ""
    var className:String = ""
    var isOn:Bool = true
    var hiddenArrow:Bool = false
    var titleColor:UIColor = .black
    var subTitleColor:UIColor = B999_TITLE_COLOR
    init(type:SetItemType,title:String,subTitle:String = "",tip:String = "",className:String = "",isOn:Bool=true,hiddenArrow:Bool = false,titleColor:UIColor = B000_COLOR,closure:@escaping (()->Void) = {}) {
        self.type = type
        self.title = title
        self.subTitle = subTitle
        self.className = className
        self.tip = tip
        self.isOn = isOn
        self.hiddenArrow = hiddenArrow
        self.titleColor = titleColor
        self.closure = closure
    }
}

enum SetItemType {
    case Switch
    case Arrow
    case Noraml
}
